content
Enum EngineType

java.lang.Object
  extended by java.lang.Enum<EngineType>
      extended by content.EngineType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EngineType>

public enum EngineType
extends java.lang.Enum<EngineType>

The enum class contains all possible engine types for the vehicles. Allowing Duplicates, several teams can have same chassis.

Author:
Dolev&Morad

Enum Constant Summary
BMW
          German manufacturer
Ferrari
          Italian manufacturer
Mercedes
          German manufacturer
Renault
          French manufacturer
Toyota
          Japanese manufacturer
 
Method Summary
static EngineType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EngineType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Mercedes

public static final EngineType Mercedes
German manufacturer


Toyota

public static final EngineType Toyota
Japanese manufacturer


BMW

public static final EngineType BMW
German manufacturer


Renault

public static final EngineType Renault
French manufacturer


Ferrari

public static final EngineType Ferrari
Italian manufacturer

Method Detail

values

public static final EngineType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(EngineType c : EngineType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static EngineType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name